<?php


require_once( '../system/Class_M_DAO.php' );
class t_d_email extends Class_M_DAO {
	
	/**
	 *
	 * テーブル名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_table = "D_EMAIL";
	
	/**
	 *
	 * 主キー名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_pkey = "id";
	
	/**
	 * ユーザーの電子メールの歴史
	 * Enter description here ...
	 * @param unknown_type $where
	 * @param unknown_type $page
	 */
	public function emailRecord($where='' ,&$page = NULL ){	
		$sql = "SELECT   * FROM  d_email a  LEFT join m_user b  ON a.user_id = b.id ";
		return  parent::search($where ,$page ,$sql);
	}

}